package com.goods.business.service;

import com.github.pagehelper.Page;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

/**
 * @author liangliang
 * @Date 2021/11/8 16:06 Administrator
 * @Description
 */
public interface ProductCategoryService {
    //获取分类物资的三级分类数据
    PageVO<ProductCategoryTreeNodeVO> categoryTree(Integer pageNum, Integer pageSize);

    //获取父级分类数据
    List<ProductCategoryTreeNodeVO> getParentCategoryTree();
    //添加物资类别的分类
    void add(ProductCategory productCategory);
    //根据ID查询物资类别的信息，用作数据回显
    ProductCategoryTreeNodeVO edit(Long id);
    //修改物资类别信息
    void update(Long id, ProductCategoryVO productCategoryVO);
    //删除物资类信息
    void delete(Long id);
}
